import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  build: {
    target: 'es2015', //modules
    modulePreload: {
      polyfill: true  // 替换原来的 polyfillModulePreload: true
    },
    cssTarget: 'chrome61'
  },
  optimizeDeps: {
    include: ['core-js']
  }
})
